<header id="page-header"> 
    <h1>Ayarlar</h1> 
</header>

<div id="content">
	
	<?php echo $this->session->flashdata('status'); ?>

    <?php echo form_open(uri_string(), 'id="edit_setting" class="crud ajaxform"') ?>

    <div id="tabs">

        <ul>
        	<li><a href="#tabs-company">Genel Ayarlar</a></li>
            <li><a href="#tabs-app">Uygulama Ayarları</a></li>
            <li><a href="#tabs-og">OpenGraph Ayarları</a></li>
            <li><a href="#tabs-seo">Seo Ayarları</a></li>
            <li><a href="#tabs-mail">Mail Ayarları</a></li>
        </ul>
        
        <div id="tabs-company">
			
            <fieldset>
                <ol>

                    <li>				
                        <label>Şirket Adı</label>															
                        <input type="text" name="setting[company][name]" value="<?php echo setting('company', 'name') ?>" />				
                    </li>

                    <li>				
                        <label>Telefon</label>												
                        <input type="text" name="setting[company][telephone]" value="<?php echo setting('company', 'telephone') ?>" />				
                    </li>

                    <li>				
                        <label>Fax</label>												
                        <input type="text" name="setting[company][fax]" value="<?php echo setting('company', 'fax') ?>" />				
                    </li>

                    <li>
                        <label>E Posta</label>																
                        <input type="text" name="setting[company][email]" value="<?php echo setting('company', 'email') ?>" />				
                    </li>

                    <li>				
                        <label>Adres</label>				
                        <textarea name="setting[company][address]" rows="6" cols="60"><?php echo setting('company', 'address') ?></textarea>				
                    </li>
                    
					<li>
                        <label>Mail Limiti (1 dakikada sistemden çıkacak maksimum mail sayısı)</label>																
                        <input type="text" name="setting[company][send_limit]" value="<?php echo setting('company', 'send_limit') ?>" />				
					</li>                    

                    <li>	
                        <label></label>			
                        <input type="submit" value="Kaydet" />		
                    </li>

                </ol>
            </fieldset>

        </div><!-- // #tabs-company -->
        
        <div id="tabs-app">

            <fieldset>
                <ol>	
                	
                    <li>				
                        <label>App ID</label>															
                        <input type="text" name="setting[app][id]" value="<?php echo setting('app', 'id') ?>" />				
                    </li>

                    <li>				
                        <label>App Secret</label>												
                        <input type="text" name="setting[app][secret]" value="<?php echo setting('app', 'secret') ?>" />				
                    </li>

                    <li>				
                        <label>App Url</label>												
                        <input type="text" name="setting[app][url]" value="<?php echo setting('app', 'url') ?>" />				
                    </li>

                    <li>
                        <label>Web Url</label>																
                        <input type="text" name="setting[app][web_url]" value="<?php echo setting('app', 'web_url') ?>" />				
                    </li>

                    <li>				
                        <label>Permissions</label>				
                        <textarea name="setting[app][perms]" rows="6" cols="60"><?php echo setting('app', 'perms') ?></textarea>				
                    </li>

                    <li>	
                        <label></label>			
                        <input type="submit" value="Kaydet" />		
                    </li>

                </ol>
            </fieldset>

        </div><!-- // #tabs-app -->

        <div id="tabs-og">
            <fieldset>
                <ol>

                    <li>				
                        <label>App Image</label>												
                        <input type="text" name="setting[og][image]" value="<?php echo setting('og', 'image') ?>" />				
                    </li>
                                   	
                    <li>				
                        <label>App Name</label>															
                        <input type="text" name="setting[og][name]" value="<?php echo setting('og', 'name') ?>" />				
                    </li>

                    <li>				
                        <label>App Type</label>				
                        <?php echo form_dropdown('setting[og][type]', $this->config->item('og_types'), setting('og', 'type')) ?>
                    </li>
                    
                    <li>
                        <label>Title</label>																
                        <input type="text" name="setting[og][title]" value="<?php echo setting('og', 'title') ?>" />				
                    </li>

                    <li>				
                        <label>Description</label>				
                        <textarea name="setting[og][description]" rows="6" cols="60"><?php echo setting('og', 'description') ?></textarea>				
                    </li>
                    
                    <li>
                        <label></label>						
                        <input type="submit" value="Kaydet" />				
                    </li>

                </ol>
            </fieldset>
        </div><!-- // #tabs-og -->
        
        <div id="tabs-seo">
            <fieldset>
                <ol>

                    <li>
                        <label>Title</label>																
                        <input type="text" name="setting[seo][title]" value="<?php echo setting('seo', 'title') ?>" />				
                    </li>

                    <li>				
                        <label>Description</label>				
                        <textarea name="setting[seo][description]" rows="6" cols="60"><?php echo setting('seo', 'description') ?></textarea>				
                    </li>

                    <li>				
                        <label>Keywords</label>				
                        <textarea name="setting[seo][keywords]" rows="6" cols="60"><?php echo setting('seo', 'keywords') ?></textarea>				
                    </li>                    
                    
                    <li>
                        <label></label>						
                        <input type="submit" value="Kaydet" />				
                    </li>

                </ol>
            </fieldset>
        </div><!-- // #tabs-og -->
        
        <div id="tabs-mail">
            <fieldset>
                <ol>

                    <li>	
                        <label>Mail Gönderen Adı</label>
                        <input type="text" name="setting[mail][from_name]" value="<?php echo setting('mail', 'from_name') ?>" />
                    </li>

                    <li>				
                        <label>Mail Gönderen E posta Adresi</label>
                        <input type="text" name="setting[mail][from_email]" value="<?php echo setting('mail', 'from_email') ?>" />				
                    </li>

                    <li>
                        <label></label>						
                        <input type="submit" value="Kaydet" />				
                    </li>

                </ol>
            </fieldset>
        </div><!-- // #tabs-mail -->
        
    </div><!-- // #tabs -->

</div><!-- // #content -->

<?php echo form_close() ?>

<script type="text/javascript" charset="utf-8">
    $(function(){
        $('#tabs').tabs();
    });
</script>